﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="M01_JDB.aspx.cs" Inherits="Enterprise.UI.Web.Modules.Jihuabu.M01_JDB" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" type="text/css" href="../../Styles/css/ssec-form.css"/> 
    <link rel="stylesheet" type="text/css" href="../../Styles/css/gridview.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPH" runat="server">
    <div class="toolbars">
      <a class="easyui-linkbutton"  iconCls="icon-toolbar" plain="true"  href="/Modules/Jihuabu/index.aspx" >数据统计</a>
      <a class="easyui-linkbutton"  iconCls="icon-toolbar" plain="true"  href="/Modules/Jihuabu/M01_JDBView.aspx" >进度查询</a>

      <a class="easyui-linkbutton"  iconCls="icon-toolbar" plain="true"  href="/Modules/Jihuabu/M01_JDB.aspx" >进度管理</a>
      <a class="easyui-linkbutton"  iconCls="icon-toolbar" plain="true"  href="/Modules/Jihuabu/M01_XMB.aspx" >项目管理</a>
      <a class="easyui-linkbutton"  iconCls="icon-toolbar" plain="true"  href="/Modules/Jihuabu/M01_JsCreate.aspx" >数据调用</a>
  </div>
    <div id="contents" class="ssec-form">
        <div class="ssec-group ssec-group-hasicon"><img src="../../easyui1.2.6/themes/icons/application.png" alt=""/><span>新增数据表</span></div>
        请输入日期：<asp:TextBox ID="t_rq" runat="server" CssClass="easyui-datebox"></asp:TextBox>
        <asp:Button ID="btn_create_fromlast" runat="server"
            Text="根据上次录入的数据创建" onclick="btn_create_fromlast_Click" 
            CssClass="button2"  /> 
        <asp:Button ID="btn_create_fromxmb" runat="server"
            Text="从项目表读取所有未完成项目" onclick="btn_create_fromxmb_Click" 
            OnClientClick="return confirm('确定要新创建'+ document.getElementsByName('ctl00$MainPH$t_rq')[0].value+'的空数据表吗？这个操作将会覆盖数据')" 
            CssClass="button2"  />
         <div class="ssec-group ssec-group-hasicon"><img src="../../easyui1.2.6/themes/icons/application.png" alt=""/><span>历史记录</span></div>
        <asp:DropDownList ID="d_rq" runat="server" AutoPostBack="True" 
            onselectedindexchanged="d_rq_SelectedIndexChanged">
        </asp:DropDownList>

        AFE编号：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:Button ID="Btn_AddNew" runat="server" onclick="Btn_AddNew_Click" 
            Text="新增一个AFE记录" CssClass="button2" />

        <asp:GridView ID="gv" runat="server" AutoGenerateColumns="False" 
            onrowdatabound="gv_RowDataBound" onrowdeleting="gv_RowDeleting">
            <Columns>
                <asp:BoundField DataField="afebh" HeaderText="AFE编号" />
                <asp:BoundField DataField="XMFL" HeaderText="项目分类" />
                <asp:BoundField DataField="XMMC" HeaderText="项目名称" />
                <asp:BoundField DataField="XMSSGS" HeaderText="项目所属公司" />
                <asp:BoundField DataField="afepz_my" HeaderText="AFE批复金额(千美元)" />
                <asp:BoundField DataField="afepz_jg" HeaderText="AFE批复金额(金戈)" />
                <asp:BoundField DataField="shiji_jg" HeaderText="实际完成(金戈)" />
                <asp:BoundField DataField="wcsj" HeaderText="完成时间" />
                <asp:TemplateField HeaderText="完成金额(金戈)">
                    <ItemTemplate>
                        <asp:TextBox ID="tb_wcjg" runat="server" Text='<%# Bind("wc_jg") %>'></asp:TextBox>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="rowid" HeaderText="rowid" />
                <asp:CommandField ShowDeleteButton="True" />
            </Columns>
            
        </asp:GridView>
        <div style="text-align:left;padding-top:3px;">
        <asp:Button ID="btn_save" runat="server" onclick="btn_save_Click" Text="保 存" 
                CssClass="button2" /></div>
   </div>
</asp:Content>
